package cn.dev33.satoken.oauth2.model;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.List;
import java.util.Set;

/**
 * Client应用信息 Model
 *
 * @author kong
 */
@Data
@AllArgsConstructor
@Accessors(chain = true)
@NoArgsConstructor
@Builder
public class SaClientModel implements Serializable {

    private static final long serialVersionUID = -6541180061782004705L;

    /**
     * 应用id
     */
    private String clientId;

    /**
     * 应用秘钥
     */
    private String clientSecret;
    /**
     * 应用签约的所有权限, 多个用逗号隔开
     */
    private List<String> scope;
    /**
     * 当前权限
     */
    private Set<String> permissions;
    /**
     * 应用允许授权的所有URL, 多个用逗号隔开
     */
    private List<String> allowUrl;
}
